<?php
$form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
        ));
//$stateMenu = Yii::app()->user->getState(app()->controller->id . 'menu');
$stateMenu = $model;
?>
<table cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr>            
            <td>
                <?php
                echo $form->textField($model, 'title', array('autocomplete' => 'off',
                    'placeholder' => t('MSG_TITLE', 'messages'),
                    'class' => 'keyword'
                ));
                ?>
            </td>
            <td>
                <?php echo $form->dropDownList($model, 'menu_type_id', Menu::model()->getMenus(), array('style' => 'width:200px;')); ?>
            </td>
            <td>
                <?php echo $form->dropDownList($model, 'status', Menu::model()->getStatuses(), array('empty' => t('MSG_FIRST_ITEM_STATUS', 'messages'))); ?>
            </td>
            <td>
                <?php echo $form->dropDownList($model, 'access', Menu::model()->getAccesses(), array('empty' => t('MSG_FIRST_ITEM_ACCESS', 'messages'))); ?>
            </td>
            <td>
                <?php echo $form->dropDownList($model, 'default_page', Menu::model()->getDefaultPages(), array('empty' => t('LBL_DEFAULT_PAGE', 'menu'))); ?>
            </td>
            <td>
                <?php echo $form->dropDownList($model, 'language', Language::model()->getChtmlLanguage(), array('empty' => t('MSG_FIRST_ITEM_LANGUAGE', 'messages'))); ?>
            </td>
            <td>
                <?php echo Html::buttonFilter(); ?>
            </td>
        </tr>
    </tbody>
</table>
<?php $this->endWidget(); ?>
